package com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.factory;

import static com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.factory.MyFactoryProducer.getAbstractFactory;

/**
 * 杭州惟君医疗科技有限公司09
 * Created by 20433 on 2018/5/17
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class MyFirstInterDemo {
    public static void main(String[] args){
        MyAbstractFactory myAbstractFactory =  getAbstractFactory("SHAPE");
        myAbstractFactory.getFirstInter("first").draw();
        myAbstractFactory.getFirstInter("secode").draw();
        myAbstractFactory.getFirstInter("throude").draw();

        MyAbstractFactory mySencodeInter = MyFactoryProducer.getAbstractFactory("COLOR");
        mySencodeInter.getSencodeInter("one").fillAll();
        mySencodeInter.getSencodeInter("two").fillAll();
        mySencodeInter.getSencodeInter("thouth").fillAll();
    }
}
